-- GENERATED SPELL FOR [Darnassian Druid] --


function spell0_16331(pUnit, Event) --@Faerie Fire,n/a--
pUnit:FullCastSpellOnTarget(25602,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16331', 22000, 1)
end

function spell1_16331(pUnit, Event) --@Healing Touch,Heal--
pUnit:FullCastSpellOnTarget(11431,pUnit)
pUnit:RegisterEvent('Sorts_16331', 3000, 1)
end

function Sorts_16331(pUnit, Event)
local choix_sorts_16331 = math.random(0, 1)
if choix_sorts_16331 == 0 then
pUnit:RegisterEvent('spell0_16331', 1, 1)
end
if choix_sorts_16331 == 1 then
pUnit:RegisterEvent('spell1_16331', 1, 1)
end
end

function mob16331_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16331', math.random(1500, 3000), 1)
end

function mob16331_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16331_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16331_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16331, 1, 'mob16331_Action')
RegisterUnitEvent(16331, 2, 'mob16331_Leave')
RegisterUnitEvent(16331, 3, 'mob16331_Kill')
RegisterUnitEvent(16331, 4, 'mob16331_Die')
